<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理区域</title>
<load type="css" href='__PUBLIC__/Css/myPage.css' />
<load type="css" href='__PUBLIC__/Css/common.css' />
<load href="__PUBLIC__/Js/jquery-1.4.min.js" />
<load href="__PUBLIC__/Js/common.js" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
-->
</style>

<script>
var URL = '__URL__';
var  highlightcolor='#c1ebff';
function sort(sortString,sortby){
	locationURL=URL+"/Sort?sortString="+sortString+"&order="+sortby;
	locationURL+="&suser_id="+$('#suser_id')[0].value;
	locationURL+="&suser_realname="+$('#suser_realname')[0].value;
	locationURL+="&store_name="+$('#store_name')[0].value;
	locationURL+="&store_static="+$('#store_static')[0].value;
	window.location.href =locationURL;
}
</script>

</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="__PUBLIC__/Images/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="__PUBLIC__/Images/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="__PUBLIC__/Images/tb.gif" width="16" height="16" /></div></td>
                <td width="95%" class="STYLE1"><span class="STYLE3">你当前的位置</span>：[用户列表]</td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td width="60"><table width="87%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center">
                      <input type="checkbox" name="checkbox62" value="checkbox" />
                    </div></td>
                    <td class="STYLE1"><div align="center">全选</div></td>
                  </tr>
                </table></td>
                <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><a href="add"><img src="__PUBLIC__/Images/22.gif" width="14" height="14" /></a></div></td>
                    <td class="STYLE1"><div align="center">新增</div></td>
                  </tr>
                </table></td>
                <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><a href="eidt()"><img src="__PUBLIC__/Images/33.gif" width="14" height="14" /></a></div></td>
                    <td class="STYLE1"><div align="center">修改</div></td>
                  </tr>
                </table></td>
                <td width="52"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><a href="foreverdel"><img src="__PUBLIC__/Images/11.gif" width="14" height="14" /></a></div></td>
                    <td class="STYLE1"><div align="center">删除</div></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="__PUBLIC__/Images/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  	<td>
  		<div style="margin:5px;padding:5px;border:1px solid #BBDDE5;">
  		<form method="post" id="searchForm" name="searchForm" action="__URL__/Search" enctype="multipart/form-data">
  			<img src="__PUBLIC__/Images/icon_search.gif" />&nbsp;&nbsp;
  			用户ID：<input type="text" name="suser_id" size=10 maxlength=10 value="{$post.suser_id}"/>&nbsp;&nbsp;
  			用户姓名：<input type="text" name="suser_realname" size=15 maxlength=15 value="{$post.suser_realname}" />&nbsp;&nbsp;
  			店铺名称：<input type="text" name="store_name" size=20 maxlength=200 value="{$post.store_name}"/>&nbsp;&nbsp;
  			店铺状态：
  				<select name="store_static">
  					<option value="2" <if condition="($post.store_static eq '2') or (!isset($post))">selected=true;</if>>全部 </option>
  					<option value="0" <if condition="($post.store_static eq '0')">selected=true;</if>>正常  </option>
  					<option value="1" <if condition="($post.store_static eq '1')">selected=true;</if>>锁定 </option>
  				</select>&nbsp;&nbsp;
  			<input type="submit" value="搜索"/>
  		</form>
  		<input type="hidden" id="suser_id" value="{$post.suser_id}"/>
  		<input type="hidden" id="suser_realname" value="{$post.suser_realname}"/>
  		<input type="hidden" id="store_name" value="{$post.store_name}"/>
  		<input type="hidden" id="store_static" value="{$post.store_static}"/>
  		</div>
  	</td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0"  id="checkList">
      <tr>
        <td width="8" background="__PUBLIC__/Images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
          <tr>
            <td width=3%" height="22" background="__PUBLIC__/Images/bgTab.gif"><div align="center">
              <input type="checkbox" name="checkbox" value="checkbox" />
            </div></td>
            <td width="10%" height="22"background="__PUBLIC__/Images/bgTab.gif">
            	<div align="center">
	            	<a href="javascript:sort('suser_id','{$order:suser_id}');">
	            		<span class="STYLE1">用户ID</span>
	            		<span>
	            			<if condition="($order:currentColumn eq 'suser_id') AND($order:suser_id eq 'desc')">
	            				<img src="__PUBLIC__/Images/sort_asc.gif"/>
	            			<elseif condition="($order:currentColumn eq 'suser_id') AND($order:suser_id eq 'asc')"/>
	            				<img src="__PUBLIC__/Images/sort_desc.gif"/>
	            			</if>
	            		</span>
	            	</a>
            	</div>
            </td>
            <td width="10%" height="22" background="__PUBLIC__/Images/bgTab.gif">
            	<div align="center">
            		<a href="javascript:sort('suser_realname','{$order:suser_realname}');">
            			<span class="STYLE1">用户姓名</span>
            			<span>
	            			<if condition="($order:currentColumn eq 'suser_realname') AND($order:suser_realname eq 'desc')">
	            				<img src="__PUBLIC__/Images/sort_asc.gif"/>
	            			<elseif condition="($order:currentColumn eq 'suser_realname') AND($order:suser_realname eq 'asc')"/>
	            				<img src="__PUBLIC__/Images/sort_desc.gif"/>
	            			</if>
	            		</span>
            		</a>
            	</div>
            </td>
            <td width="10%" height="22" background="__PUBLIC__/Images/bgTab.gif">
            	<div align="center">
            		<a href="javascript:sort('store_id','{$order:store_id}');">
            			<span class="STYLE1">店铺ID</span>
            			<span>
	            			<if condition="($order:currentColumn eq 'store_id') AND($order:store_id eq 'desc')">
	            				<img src="__PUBLIC__/Images/sort_asc.gif"/>
	            			<elseif condition="($order:currentColumn eq 'store_id') AND($order:store_id eq 'asc')"/>
	            				<img src="__PUBLIC__/Images/sort_desc.gif"/>
	            			</if>
	            		</span>
            		</a>
            	</div>
            </td>
            <td width="15%" height="22" background="__PUBLIC__/Images/bgTab.gif">
            	<div align="center">
            		<a href="javascript:sort('store_name','{$order:store_name}');">
            			<span class="STYLE1">店铺名称</span>
            			<span>
	            			<if condition="($order:currentColumn eq 'store_name') AND($order:store_name eq 'desc')">
	            				<img src="__PUBLIC__/Images/sort_asc.gif"/>
	            			<elseif condition="($order:currentColumn eq 'store_name') AND($order:store_name eq 'asc')"/>
	            				<img src="__PUBLIC__/Images/sort_desc.gif"/>
	            			</if>
	            		</span>
            		</a>
            	</div>
            </td>
            <td width="10%" height="22" background="__PUBLIC__/Images/bgTab.gif">
           		<div align="center">
           			<a href="javascript:sort('suser_pointcard','{$order:suser_pointcard}');">
           				<span class="STYLE1">剩余点额数</span>
           				<span>
	            			<if condition="($order:currentColumn eq 'suser_pointcard') AND($order:suser_pointcard eq 'desc')">
	            				<img src="__PUBLIC__/Images/sort_asc.gif"/>
	            			<elseif condition="($order:currentColumn eq 'suser_pointcard') AND($order:suser_pointcard eq 'asc')"/>
	            				<img src="__PUBLIC__/Images/sort_desc.gif"/>
	            			</if>
	            		</span>
           			</a>
           		</div>
           	</td>
            <td width="10%" height="22" background="__PUBLIC__/Images/bgTab.gif">
            	<div align="center">
            		<a href="javascript:sort('suser_totlepointcard','{$order:suser_totlepointcard}');">
            			<span class="STYLE1">总点额数</span>
            			<span>
	            			<if condition="($order:currentColumn eq 'suser_totlepointcard') AND($order:suser_totlepointcard eq 'desc')">
	            				<img src="__PUBLIC__/Images/sort_asc.gif"/>
	            			<elseif condition="($order:currentColumn eq 'suser_totlepointcard') AND($order:suser_totlepointcard eq 'asc')"/>
	            				<img src="__PUBLIC__/Images/sort_desc.gif"/>
	            			</if>
	            		</span>
            		</a>
            	</div>
            </td>
            <td width="5%" height="22" background="__PUBLIC__/Images/bgTab.gif">
            	<div align="center">
            		<a href="javascript:sort('store_static','{$order:store_static}');">
            			<span class="STYLE1">状态</span>
            			<span>
	            			<if condition="($order:currentColumn eq 'store_static') AND($order:store_static eq 'desc')">
	            				<img src="__PUBLIC__/Images/sort_asc.gif"/>
	            			<elseif condition="($order:currentColumn eq 'store_static') AND($order:store_static eq 'asc')"/>
	            				<img src="__PUBLIC__/Images/sort_desc.gif"/>
	            			</if>
	            		</span>
            		</a>
            	</div>
            </td>
            <td width="5%" height="22" background="__PUBLIC__/Images/bgTab.gif">
            	<div align="center">
            		<a href="javascript:sort('store_recommend','{$order:store_recommend}');">
            			<span class="STYLE1">推荐</span>
            			<span>
	            			<if condition="($order:currentColumn eq 'store_recommend') AND($order:store_recommend eq 'desc')">
	            				<img src="__PUBLIC__/Images/sort_asc.gif"/>
	            			<elseif condition="($order:currentColumn eq 'store_recommend') AND($order:store_recommend eq 'asc')"/>
	            				<img src="__PUBLIC__/Images/sort_desc.gif"/>
	            			</if>
	            		</span>
            		</a>
            	</div>
            </td>
            <td width="25%" background="__PUBLIC__/Images/bgTab.gif"><div align="center"><span class="STYLE1">基本操作</span></div></td>
          </tr>
          <volist name="list" id="vo">
          <tr>
            <td height="20" bgcolor="#FFFFFF"><div align="center">
              <input type="checkbox" name="checkbox2"  value="{$vo.suser_id}" name="key" />
            </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">
              <div align="center">{$vo.suser_id}</div>
            </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo.suser_realname}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo.store_id}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo.store_name}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo.suser_pointcard}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo.suser_totlepointcard}</span></div></td>
            <td height="20" bgcolor="#FFFFFF">
            	<div align="center">
            		<span class="STYLE1">
	            		<switch name="vo.store_static">
	                        <case value="0">正常</case>
	                        <case value="1">锁定</case>
	      	            </switch>
            		</span>
            	</div>
            </td>
            <td height="20" bgcolor="#FFFFFF">
            	<div align="center">
            		<span class="STYLE1">
	            		<switch name="vo.store_recommend">
	                        <case value="0">否</case>
	                        <case value="1">是</case>
	      	            </switch>
            		</span>
            	</div>
            </td>
            <td height="20" bgcolor="#FFFFFF">
            	<div align="center"><span class="STYLE4">
            		<a href="__URL__/detail?id={$vo.suser_id}"><img src="__PUBLIC__/Images/search.png" width="16" height="16" />详情&nbsp; &nbsp;</a>
         			<switch name="vo.store_static">
                        <case value="0"><a href="javascript:foreverlock('{$vo.store_id}','1');"><img src="__PUBLIC__/Images/lock.png" width="16" height="16" />锁定&nbsp; &nbsp;</a></case>
                        <case value="1"><a href="javascript:foreverlock('{$vo.store_id}','0');"><img src="__PUBLIC__/Images/lock_off.png" width="16" height="16" />解锁&nbsp; &nbsp;</a></case>
      	            </switch>
            		
            		<a href="__URL__/recharge?id={$vo.suser_id}"><img src="__PUBLIC__/Images/calculator.png" width="16" height="16" />记录&nbsp; &nbsp;</a>
            		<a href="javascript:foreverdel('{$vo.store_id}');"><img src="__PUBLIC__/Images/del.gif" width="16" height="16" />删除</a></span>
            	</div>
            </td>
          </tr>
          </volist>
        </table></td>
        <td width="8" background="__PUBLIC__/Images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="__PUBLIC__/Images/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="__PUBLIC__/Images/tab_18.gif" width="12" height="35" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="STYLE4"><div class="green-black">{$page}</div></td>
          </tr>
        </table></td>
        <td width="16"><img src="__PUBLIC__/Images/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>
 <form action="__URL__/delete" method="post" id="form1">
 	<input id = "id" name="id" type="hidden" value="" />
 </form>
 <form action="__URL__/lock" method="post" id="formForLock">
 	<input id="id_lock" name="id_lock" type="hidden" value="" />
 	<input id="store_static_lock" name="store_static_lock" type="hidden" value="" />
 </form>
</body>
</html>
